import server from "../util/request.js";

export function loadDepartment(){
    return server({
        url:'/api/dashboard/medical-rooms',
        method:'get'
    })
}

export function loadBed(data){
    return server({
        url:'/api/dashboard/beds',
        method:'get',
        params:{
            departmentId: data
        }
    })
}

// (用于新的合并后的护士站病床图)
export function loadPatientBed(data){
    return server({
        url:'/api/dashboard/patient-beds', // <-- 调用新API
        method:'get',
        params:{
            departmentId: data
        }
    })
}